<?php

namespace App\Events;


use App\Models\Order;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;


class OrderPaid
{
    use Dispatchable , InteractsWithSockets , SerializesModels;

    protected $order;


    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct( Order $order )
    {
        $this->order = $order;
    }


    public function getOrder()
    {
        return $this->order;
    }
}
